﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Smartee.Modelling.Shapes
{
    public class Box : FilledShape
    {
        public Box(Color lineColor, Metric lineWidth, Color fillColor, int left, int top, int width, int height)
            : base(lineColor, lineWidth, fillColor)
        {
            _rectangle = new System.Drawing.Rectangle(left, top, width, height);
        }

        public Box(int left, int top, int width, int height)
            : this(DefaultColor, Metric.Default, DefaultFillColor, left, top, width, height)
        {
        }

        protected Rectangle _rectangle;
        internal Rectangle Rectangle { get { return _rectangle; } }

        public override void Accept(IVisitor visitor)
        {
            visitor.Visit(this);
        }
    }
}
